package com.hrt.web.orderInfor.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.hrt.base.BaseDaoImpl;
import com.hrt.bean.OrderDetail;
import com.hrt.web.orderInfor.dao.WebOrderDetailDao;
@Repository
public class WebOrderDetailDaoImpl extends BaseDaoImpl<OrderDetail> implements WebOrderDetailDao{

	@SuppressWarnings("unchecked")
	@Override
	public List<OrderDetail> getOrderDetailByOrderId(Long orderId) {
		String hql = "select detail from OrderDetail detail where detail.orderId='"+orderId+"'";
		return getHibernateTemplate().find(hql);
	}

}
